package com.newgrand.ng5.web;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.ImportResource;

/**
 * @author ：minyang
 * @date ：Created in 2019/8/15 11:41
 */
@EnableAutoConfiguration
@SpringBootApplication
@ComponentScan("com.newgrand.ng5.dao.mapper")
@ComponentScan("com.newgrand.ng5.service")
@ImportResource(locations = "classpath*:/applicationContext.xml")
public class WebapiApplication {

    public static void main(String[] args) {
        SpringApplication.run(WebapiApplication.class, args);

    }
}
